package com.core.zyyz.pcmc.service.impl;

import java.util.List;

import com.core.zyyz.pcmc.domain.PcmcMsgRecord;
import com.core.zyyz.pcmc.mapper.PcmcMsgRecordMapper;
import com.core.zyyz.pcmc.service.PcmcMsgRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 消息记录Service业务层处理
 *
 * @author core
 * @date 2024-10-30
 */
@Service
public class PcmcMsgRecordServiceImpl implements PcmcMsgRecordService
{
    @Autowired
    private PcmcMsgRecordMapper pcmcMsgRecordMapper;

    /**
     * 查询消息记录
     *
     * @param messageId 消息记录主键
     * @return 消息记录
     */
    @Override
    public PcmcMsgRecord selectPcmcMsgRecordByMessageId(Long messageId)
    {
        return pcmcMsgRecordMapper.selectPcmcMsgRecordByMessageId(messageId);
    }

    /**
     * 查询消息记录列表
     *
     * @param pcmcMsgRecord 消息记录
     * @return 消息记录
     */
    @Override
    public List<PcmcMsgRecord> selectPcmcMsgRecordList(PcmcMsgRecord pcmcMsgRecord)
    {
        return pcmcMsgRecordMapper.selectPcmcMsgRecordList(pcmcMsgRecord);
    }

    /**
     * 新增消息记录
     *
     * @param pcmcMsgRecord 消息记录
     * @return 结果
     */
    @Override
    public int insertPcmcMsgRecord(PcmcMsgRecord pcmcMsgRecord)
    {
        return pcmcMsgRecordMapper.insertPcmcMsgRecord(pcmcMsgRecord);
    }

    /**
     * 修改消息记录
     *
     * @param pcmcMsgRecord 消息记录
     * @return 结果
     */
    @Override
    public int updatePcmcMsgRecord(PcmcMsgRecord pcmcMsgRecord)
    {
        return pcmcMsgRecordMapper.updatePcmcMsgRecord(pcmcMsgRecord);
    }

    /**
     * 批量删除消息记录
     *
     * @param messageIds 需要删除的消息记录主键
     * @return 结果
     */
    @Override
    public int deletePcmcMsgRecordByMessageIds(Long[] messageIds)
    {
        return pcmcMsgRecordMapper.deletePcmcMsgRecordByMessageIds(messageIds);
    }

    /**
     * 删除消息记录信息
     *
     * @param messageId 消息记录主键
     * @return 结果
     */
    @Override
    public int deletePcmcMsgRecordByMessageId(Long messageId)
    {
        return pcmcMsgRecordMapper.deletePcmcMsgRecordByMessageId(messageId);
    }
}
